package pers.hubb.exception;

import java.io.Serializable;

/**
 * @author hubb
 * @Description 通用业务异常（由异常状态码区分不同的业务异常）
 * @Date 2018/4/21 19:01
 */
public class CommonBizException extends RuntimeException implements Serializable {

	/**
	 * 异常枚举
	 */
	private ExpCodeEnum codeEnum;

	public CommonBizException(ExpCodeEnum codeEnum) {
		super(codeEnum.getMessage());
		this.codeEnum = codeEnum;
	}

	public CommonBizException() {}

	public ExpCodeEnum getCodeEnum() {
		return codeEnum;
	}
}
